package Lambda;

public class Lambda_study {
    public static void main(String[] args) {
        new Thread(()->{
            System.out.println(Thread.currentThread().getName()+"新方法创建了");
        }
        ).start();

        eatfish(()->{
            System.out.println("I love fish");
        });
    }

    public static void eatfish(Fish fish)
    {
        fish.eat();
    }
}
